/*
 * Utils.h
 *
 *  Created on: 13/04/2014
 *      Author: ariel
 */

#ifndef UTIL_H_
#define UTIL_H_

#include <iostream>
using namespace std;
#include <string>
#include<vector>

#include <sys/types.h>
#include <dirent.h>
#include <stdio.h>
#include <cstdlib>
#include <stdlib.h>
#include <string.h>


class Utils {
public:
	Utils();
	virtual ~Utils();
	static void coutVector(string, vector<int>);
	static int buscar_pos_bloque(int registro,vector<int> table);
	static vector<int> dulplicate_table(vector<int> table);
	static vector<int> redifinir_table(vector<int> table, int tam_dispersion, int index_dispesion, int value);
	static int redifinitionTable_forDeleteOK(int tam_dispersion, int index_dispesion, vector<int> table);
	static void truncarTable_mitadRepetida(vector<int> table);
	static string getNombreArchivo(struct dirent* ent, string extension);
};

#endif /* UTIL_H_ */
